import ajax from '@/api/apiConfig.js'

/* 获取字典 */
export const getFcfSelectList = (data) => {
  return ajax.get('fcf/getFcfSelectList', data)
}

/* 获取业主单位探测器信息总览 */
export const getFcfRealTimeStatusCountOverview = (data) => {
  return ajax.get('fcf/getFcfRealTimeStatusCountOverview', data)
}

/* 获取设备物联列表 */
export const getFcfStatusList = (data) => {
  return ajax.get('fcf/getFcfStatusList', data)
}

/* 获取消防设施系统类别树结构 */
export const getSysFcfCategoryTree = (data) => {
  return ajax.get('fcf/getSysFcfCategoryTree', data)
}

/* 获取消防设施实时状态信息 */
export const getFacsRealStatusInfo = (data) => {
  return ajax.get('fcf/getFacsRealStatusInfo', data)
}

/* 获取消防设施室内位置 */
export const getFacsLocation = (data) => {
  return ajax.get('fcf/getFacsLocation', data)
}

/* 获取消防设施历史时间状态统计 */
export const getFacsHisStatus = (data) => {
  return ajax.get('fcf/getFacsHisStatus', data)
}

/* 获取单位报警数最多的探测器
 */
export const getOrgAlertFcfTopN = (data) => {
  return ajax.get('fcf/getOrgAlertFcfTopN', data)
}

/* 获取excel导入进度 */
export const getImportFNum = (data) => {
  return ajax.get('fcf/getImportFNum', data)
}

/* excel导入取消 */
export const stopImportFTemplate = (data) => {
  return ajax.post('fcf/stopImportFTemplate', data, {timeout: 360000000})
}


/* 未录入设备列表接口 */
export const noenterDevice = (data) => {
  return ajax.get('noenterDevice/getList', data, {timeout: 360000000})
}

/* 资产清单批量修改接口 */
export const updateBatchAssetInfo = (data) => {
  return ajax.post('assets/updateBatchAssetInfo', data)
}

export const getMockEquips = (data) => {
  return ajax.getJSON('config/equipId.json', data)
}

// 手报
export const alarmCallById = (data) => {
  return ajax.get(`alarm/alarmCallById`, data)
}

// 获取手动下发设备类别
export const getSendCommandFcsCategoryList = (data) => {
  return ajax.get(`fcf/getSendCommandFcsCategoryList`, data)
}